package goliath;

import org.jbox2d.collision.Shape;
import org.jbox2d.collision.ShapeDef;
import org.jbox2d.collision.ShapeType;

import java.util.List;

/**
 * Intermediate object that wraps a Shape to provide serialization functionality.
 * @author will
 * @date Aug 9, 2008 3:09:14 PM
 */
public class ShapeObject {
    /** Holds the shape type for down-casting. */
    public ShapeType type;

    /** Use this to store application specify shape data. */
    public Object userData;

    /** The shape's friction coefficient, usually in the range [0,1]. */
    public float friction;

    /** The shape's restitution (elasticity) usually in the range [0,1]. */
    public float restitution;

    /** The shape's density, usually in kg/m^2. */
    public float density;

    

    public float x,y;
    public float angle;
    public float angularDamping;
    public List<ShapeObject> shapeList;

    public ShapeObject(Shape s) {
        ShapeDef sd = new ShapeDef();
    }
}
